package com.scut.campus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scut.campus.entity.Like;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface LikeService extends IService<Like> {
    void insertPostLike(String postId);

    void likeComment(String commentId);

    void deleteByPostId(String postId, boolean verifyId);

    void deleteByCommentId(String commentId, boolean verifyId);

    int countPostLike(String postId);

    int countCommentLike(String commentId);

    Map<String, String> isPostLiked(List<String> postIdList);

    Map<String, String> isCommenttLiked(List<String> commentIdList);
}
